<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%attribute_value}}".
 *
 * @property integer $attr_id
 * @property string $value
 */
class AttributeValue extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%attribute_value}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['attr_id'], 'integer'],
            [['value'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'attr_id' => Yii::t('common', '属性id'),
            'value' => Yii::t('common', '属性值'),
        ];
    }
}
